package top.hzy520.common.utils;

import org.apache.shiro.SecurityUtils;
import top.hzy520.user.entity.User;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 18:03 2018/10/7
 */
public class BaseController {
    public User getCurrentUser(){
      User user= (User) SecurityUtils.getSubject().getSession().getAttribute("user");
      return user;
    }
}
